.hover {
  &:hover {
    color: $main-text-color !important;
    background-color: $active-bg-color !important;
    cursor: pointer;
  }
}
.actived-bg {
  color: $main-text-color !important;
  background-color: $active-bg-color !important;
}
.actived {
  color: $main-text-color !important;
}
.drag {
  -webkit-app-region: drag;
}
.no-drag {
  -webkit-app-region: no-drag;
}
.svgAutoFill {
  //使svg自动适应亮色、暗色模式
  fill: $icon-color;
  transition-property: fill;
  transition-duration: 0.3s;
  transition-timing-function: linear;
}
.text-hidden {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

// 文字超出x行自动显示省略号
@mixin text-overflow($line: 2) {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: $line;
}
